<template>
	<view>
		<!-- 广告图 -->
		<banner :inset='con'></banner>
		<view class="sizheng">
			<!-- <text class="btwz">思政列表</text> -->
			<view class="sizh">
				<view class="sz_zt" v-for="(item,index) in conte" @click="tz(item.id,item.name)" :key="index">
					<view class="sz_t">
						<image :src="item.faceUrl" mode=""></image>
					</view>
					<text class="wenzi">{{item.name}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			var con = '/static/banner/qj.png'
			return {
				conte: [],
				imgs: [],
				con: con,
			}
		},
		onLoad(option) {

		},
		created() {
			let that = this
			that.pyReq(that.$http.getVoviTypeInfo, {}, function(res) {
				console.log('全景思政分类',res)
				that.conte = res.result
			});
		},
		methods: {
			tz(id, na) {
				console.log(na)
				console.log(id)
				uni.navigateTo({
					url: './ziye_xqli?id=' + id + '&na=' + na
				})
			}
		}
	}
</script>

<style>
	.btwz {
		font-size: 30upx;
		margin-left: 43upx;
		margin-top: 20upx;
	}

	.sizh {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		padding: 0 23upx;

	}

	.sz_t {
		width: 100%;
		height: 247upx;
		border-radius: 10upx;
		overflow: hidden;
	}

	.sz_t>image {
		width: 100%;
		height: 100%;
	}

	.sz_zt {
		width: 48%;
		margin: 20upx 0;
	}

	.wenzi {
		display: block;
		text-align: center;
		font-size: 26upx;
		margin-top: 16upx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
</style>
